function register() {
	var user = validate("username");
	var pwd = validate("password");
	var nname = validate("nickname");
	var secq = validate("secquestion");
	var seca = validate("secanwser");
	if(username && password && nickname &&
			secq && seca) {
		$.post("register.jsp?act=register",
				{
					username:user,
					password:pwd,
					nickname:nname,
					secQuestion:secq,
					secAnwser:seca
				}, function() {
					
				});
	}
}

function validate(elementId) {
	var text = $(elementId).val();
	if(text == "") {
		notice(elementId);
		return false;
	}
	return text;
}

function notice(elementId) {
	
}